package com.isdepci.project.reference.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.reference.mapper.ReferenceMaterialMapper;
import com.isdepci.project.reference.domain.ReferenceMaterial;
import com.isdepci.project.reference.service.IReferenceMaterialService;

/**
 * 参考材料Service业务层处理
 *
 * @author isdepci
 * @date 2023-08-23
 */
@Service
public class ReferenceMaterialServiceImpl implements IReferenceMaterialService
{
    @Autowired
    private ReferenceMaterialMapper referenceMaterialMapper;

    /**
     * 查询参考材料
     */
    @Override
    public ReferenceMaterial selectReferenceMaterialById(Long id)
    {
        return referenceMaterialMapper.selectReferenceMaterialById(id);
    }

    /**
     * 查询参考材料列表
     */
    @Override
    public List<ReferenceMaterial> selectReferenceMaterialList(ReferenceMaterial referenceMaterial)
    {
        return referenceMaterialMapper.selectReferenceMaterialList(referenceMaterial);
    }

    /**
     * 新增参考材料
     */
    @Override
    public int insertReferenceMaterial(ReferenceMaterial referenceMaterial)
    {
        return referenceMaterialMapper.insertReferenceMaterial(referenceMaterial);
    }

    /**
     * 修改参考材料
     */
    @Override
    public int updateReferenceMaterial(ReferenceMaterial referenceMaterial)
    {
        return referenceMaterialMapper.updateReferenceMaterial(referenceMaterial);
    }

    /**
     * 批量删除参考材料
     */
    @Override
    public int deleteReferenceMaterialByIds(Long[] ids)
    {
        return referenceMaterialMapper.deleteReferenceMaterialByIds(ids);
    }

    /**
     * 删除参考材料信息
     */
    @Override
    public int deleteReferenceMaterialById(Long id)
    {
        return referenceMaterialMapper.deleteReferenceMaterialById(id);
    }
}
